<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>友情连接</strong></div>
    <div class="padding border-bottom">
        <a href="JavaScript:void(0);" class="button button-small border-green">管理</a>
        <a href="{:U('add')}" class="button button-small border-green">新增</a>
    </div>
    <form method='post' id="form_link">
        <input type="hidden" name="form_submit" value="ok" />
        <table class="table tb-type2 nobdb">
            <thead>
            <tr class="thead">
                <th>&nbsp;</th>
                <th>排序</th>
                <th>合作伙伴</th>
                <th>图片标识</th>
                <th>连接</th>
                <th class="align-center">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="res" item="v">
            <tr class="hover edit">
                <td class="w24"><input type="checkbox" name="del_id[]" value="2" class="checkitem"></td>
                <td class="w48 sort"><span class="tooltip editable" title="可编辑" ajax_branch='link_sort' datatype="number" fieldid="2" fieldname="link_sort" nc_type="inline_edit">{$v['link_sort']}</span></td>
                <td>{$v['link_title']}</td>
                <td class="picture"><div class='size-88x31'><span class='thumb size-88x31'><i></i><img width="88" height="31" src="{$v['link_pic']}" onload='javascript:DrawImage(this,88,31);' /></span></div></td>
                <td>{$v['link_url']}</td>
                <td class="w96 align-center"><a class="button bg-blue button-little" href="{:U('save',array('link_id'=>$v['link_id']))}"><i class="icon-edit"></i>编辑</a>
                    <a class="button bg-red button-little js-del" href="{:U('del',array('link_id'=>$v['link_id']))}"><i class="icon-minus-circle"></i>删除</a></td>
            </tr>
            </foreach>
            </tbody>
            <tfoot>
            <tr class="tfoot" id="dataFuncs" style="position: absolute;">
                <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
                <td colspan="2" id="batchAction"><label for="checkallBottom">全选</label>
                    &nbsp;&nbsp; <a href="JavaScript:void(0);" class="button bg-main" onclick="if(confirm('您确定要删除吗?')){$('#form_link').submit();}"><span>删除</span></a>
                    </td>
                <td colspan="4" style=" position: relative;right: 0px;"><div class="pages clearfix">{$pages}</div></td>
            </tr>

            </tfoot>
        </table>
    </form>
</div>
</div>
